package com.mes_for_xxxxxx.service;

import com.mes_for_xxxxxx.entity.Processflow;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mes_for_xxxxxx.entity.dto.ProcessflowDTO;
import com.mes_for_xxxxxx.entity.dto.ReceiveProcessflowDTO;

import java.util.List;

/**
 * <p>
 * 工艺流程表 服务类
 * </p>
 *
 * @author 179005
 * @since 2024-09-10
 */
public interface IProcessflowService extends IService<Processflow> {

    List<Processflow> outTimeTask();

    void delayProcessflow(String orderId);

    int pushStatusProcessflow(String orderId);

    void pushProcessflow(ProcessflowDTO dto);

    Processflow add(Processflow processflow);

    void testOrder(String orderId, Integer firstMaterial);

    /**
     * 提供给定时任务使用，为当前工序填充下一工序
     * @return
     */
    int addNextFlow();

    /**
     * 接收工单
     * @param orderId
     */
    void receive(ReceiveProcessflowDTO dto);

    List<Processflow>  accept(Integer id);
}
